package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPos extends Object implements IMessageBase
    {
        public var map:int;
        public var subMap:int;
        public var x:int;
        public var y:int;
        public const _type:int = 12005;
        public static var _regist:SPos = new SPos(true);

        public function SPos(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SPos();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.map);
            param1.writeInt(this.subMap);
            param1.writeInt(this.x);
            param1.writeInt(this.y);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.map = param1.readInt();
            this.subMap = param1.readInt();
            this.x = param1.readInt();
            this.y = param1.readInt();
            
        }

    }
}
